package com.bcbim.smart_water.wisdom_big_screen.service;

import com.bcbim.common.sys.Code;
import com.bcbim.smart_water.wisdom_big_screen.mapper.WisdomBigScreenMapper;
import com.bcbim.smart_water_interface.equipment_alarm_monitoring.vo.listAlarmMessageVO;
import com.bcbim.smart_water_interface.inspection.vo.InspectionPositionVO;
import com.bcbim.smart_water_interface.wisdom_big_screen.service.WisdomBigScreenService;
import com.bcbim.smart_water_interface.wisdom_big_screen.vo.ListAssetInformationVO;
import com.bcbim.smart_water_interface.wisdom_big_screen.vo.ListInspectionInformationVO;
import com.bcbim.smart_water_interface.wisdom_big_screen.vo.ListProblemInformationVO;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @Description:
 * @Author lihonggang
 * @Date 2021/11/03  15:43
 * @Version V1.0
 **/
@Service(timeout = 60 * 1000, group = "wisdomBigScreen", version = "1.0.0")
public class WisdomBigScreenServiceImpl implements WisdomBigScreenService {

    @Autowired
    private WisdomBigScreenMapper wisdomBigScreenMapper;

    /**
     * @Description: 等级缺陷统计
     * @Date: 2021/11/3 15:42
     * @Param: []
     * @return: java.util.List<com.bcbim.common.sys.Code>
     * @Author: lihonggang
     **/
    @Override
    public List<Code> defectRecord() {
        return wisdomBigScreenMapper.defectRecord();
    }

    /**
     * @Description: 设备总数量
     * @Date: 2021/11/3 16:49
     * @Param: []
     * @return: int
     * @Author: lihonggang
     **/
    @Override
    public int equipmentCount(String roadId) {
        return wisdomBigScreenMapper.equipmentCount(roadId);
    }

    /**
     * @Description: 设备在线数量
     * @Date: 2021/11/3 17:29
     * @Param: []
     * @return: int
     * @Author: lihonggang
     **/
    @Override
    public int equipmentOnlineCount(String roadId) {
        return wisdomBigScreenMapper.equipmentOnlineCount(roadId);
    }

    /**
     * @Description: 设备离线数量
     * @Date: 2021/11/3 17:31
     * @Param: []
     * @return: int
     * @Author: lihonggang
     **/
    @Override
    public int equipmentOfflineCount(String roadId) {
        return wisdomBigScreenMapper.equipmentOfflineCount(roadId);
    }

    /**
     * @Description: 报警信息列表查询
     * @Date: 2021/11/4 9:29
     * @Param: []
     * @return: java.util.List<com.bcbim.pipeline_interface.equipment_alarm_monitoring.vo.listAlsrmMessageVO>
     * @Author: lihonggang
     **/
    @Override
    public List<listAlarmMessageVO> listAlarmMessage() {
        return wisdomBigScreenMapper.listAlarmMessage();
    }

    @Override
    public List<ListInspectionInformationVO> listInspectionInformation() {
        return wisdomBigScreenMapper.listInspectionInformation();
    }

    @Override
    public List<ListAssetInformationVO> listAssetInformation() {
        return wisdomBigScreenMapper.listAssetInformation();
    }

    @Override
    public List<ListAssetInformationVO> listAssetAlarmInformation() {
        return wisdomBigScreenMapper.listAssetAlarmInformation();
    }

    @Override
    public List<InspectionPositionVO> listInspectionPosition() {
        return wisdomBigScreenMapper.listInspectionPosition();
    }

    @Override
    public List<ListProblemInformationVO> listProblemInformation() {
        return wisdomBigScreenMapper.listProblemInformation();
    }

}
